import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter);
import Homepage from '../pages/homepage';
import PlayInterface from '../pages/play-interface';
import HotSong from '../pages/homepage/pages/hot-song';
import SearchPage from '../pages/homepage/pages/search-page';
import RecommendPage from '../pages/homepage/pages/recommend-page';
import SongInformation from '../pages/song-information';
const routes = [
    {
        path: "/",
        component: Homepage,
        children: [
            {
                path: "/",
                component: RecommendPage,
            },
            {
                path: "recommend-page",
                component: RecommendPage,
            },
            {
                path: "hot-song",
                component: HotSong,
            },
            {
                path: "search-page",
                component: SearchPage,
            },
        ]
    },
    {
        path: "/play-page",
        component: PlayInterface,
    },
    {
        path: "/song-information",
        name: '/song-information',
        component: SongInformation,
    }
];
export default new VueRouter({
    routes,
    mode: 'history', // 不设置的话默认是hash模式
});